<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Add Host</title>
</head>
<body>

	<h1>Add Host to Site ${site.name}</h1>
	<form:form modelAttribute="host" action="addHost" method="post">
		<fieldset>
			<legend>Host</legend>
			<p>
			<div>
				<form:label for="hostname" path="hostname" cssErrorClass="error">Hostname</form:label>
			</div>
			<div>
				<form:input path="hostname" />
				<form:errors path="hostname" />
			</div>
			</p>
			<p>
			<div>
				<form:label for="wsPort" path="wsPort" cssErrorClass="error">Web Service Port</form:label>
			</div>
			<div>
				<form:input path="wsPort" />
				<form:errors path="wsPort" />
			</div>
			</p>
			<p>
			<div>
				<form:label for="wsUsername" path="wsUsername" cssErrorClass="error">Web Service User</form:label>
			</div>
			<div>
				<form:input path="wsUsername" />
				<form:errors path="wsUsername" />
			</div>
			</p>
			<p>
			<div>
				<form:label for="wsPassword" path="wsPassword" cssErrorClass="error">Web Service Password</form:label>
			</div>
			<div>
				<form:password path="wsPassword" />
				<form:errors path="wsPassword" />
			</div>
			</p>
			<p>
				<input type="submit" value="Add" />
			</p>
		</fieldset>
	</form:form>
</body>
</html>
